// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package org.tinaelle.server.domain;
/**
 * @see org.tinaelle.server.domain.AdReferenceListTrl
 */
public class AdReferenceListTrlDaoImpl
    extends org.tinaelle.server.domain.AdReferenceListTrlDaoBase
{
    /**
     * @see org.tinaelle.server.domain.AdReferenceListTrlDao#toAdReferenceListTrlDTO(org.tinaelle.server.domain.AdReferenceListTrl)
     */
    public org.tinaelle.common.dto.AdReferenceListTrlDTO toAdReferenceListTrlDTO(final org.tinaelle.server.domain.AdReferenceListTrl entity)
    {
        return super.toAdReferenceListTrlDTO(entity);
    }

    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private org.tinaelle.server.domain.AdReferenceListTrl loadAdReferenceListTrlFromAdReferenceListTrlDTO(org.tinaelle.common.dto.AdReferenceListTrlDTO adReferenceListTrlDTO)
    {
        org.tinaelle.server.domain.AdReferenceListTrl adReferenceListTrl = this.load(adReferenceListTrlDTO.getAdReferenceListTrlId());
        if (adReferenceListTrl == null)
        {
            adReferenceListTrl = org.tinaelle.server.domain.AdReferenceListTrl.Factory.newInstance();
        }
        return adReferenceListTrl;
    }

    
    /**
     * @see org.tinaelle.server.domain.AdReferenceListTrlDao#adReferenceListTrlDTOToEntity(org.tinaelle.common.dto.AdReferenceListTrlDTO)
     */
    public org.tinaelle.server.domain.AdReferenceListTrl adReferenceListTrlDTOToEntity(org.tinaelle.common.dto.AdReferenceListTrlDTO adReferenceListTrlDTO)
    {
        org.tinaelle.server.domain.AdReferenceListTrl entity = this.loadAdReferenceListTrlFromAdReferenceListTrlDTO(adReferenceListTrlDTO);
        this.adReferenceListTrlDTOToEntity(adReferenceListTrlDTO, entity, true);
        return entity;
    }
}